package com.heitian.ssm.service.impl;

import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

import java.util.logging.Logger;

/**
 * Created with IntelliJ IDEA.
 * User: mishuai
 * Date: 2018-05-02
 * Time: 18:37
 * Des:
 */
public class JedisPoolWriper {

    private org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(JedisPoolWriper.class);
    private JedisPool jedisPool = null;


    public JedisPoolWriper(final JedisPoolConfig poolConfig, final String host, final int port){
        try{
            jedisPool = new JedisPool(poolConfig,host,port);
        }catch(Exception e){
            log.error("Jedis Pool init failed:", e);
        }
    }


}
